package common;

import com.beust.jcommander.internal.Lists;
import org.testng.TestListenerAdapter;
import org.testng.TestNG;

import java.util.ArrayList;
import java.util.List;

public class TestRunner {
    public static void main(String[] args) {
        TestNG testNG=new TestNG();
        TestListenerAdapter adapter=new TestListenerAdapter();
        List<String> suites = Lists.newArrayList();

        testNG.addListener(adapter);
        suites.add("D:\\ApiTest\\src\\main\\resources\\testngXml\\161\\testsuite.xml");
//        suites.add("D:\\ApiTest\\src\\main\\resources\\testngXml\\cdss.xml");
        testNG.setTestSuites(suites);
        testNG.setParallel("test");
        testNG.setSuiteThreadPoolSize(5);
//        testNG.setOutputDirectory("输出路径");
        testNG.run();
    }
}
